package javamobile.controller;

import java.util.Map;

import javamobile.model.Model;

public class Controller {
	public Controller() {
		Model model = new Model();
		Action.add(new LoginAction(model));
		Action.add(new RegisterAction(model));
		Action.add(new FriendsListAction(model));
		Action.add(new InviteFriendAction(model));
		Action.add(new AcceptFriendAction(model));
		Action.add(new CreateBillAction(model));
		Action.add(new OpenBillListAction(model));
		Action.add(new ClosedBillListAction(model));
		Action.add(new HomeAction(model));
		Action.add(new ViewBillListAction(model));
		Action.add(new PayBillAction(model));
	}
	
	public Map<String, Object> performAction (String action, Map<String, Object> input) {
		return Action.perform(action, input);
	}
}
